package com.young.customer.listener;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * describe:
 *
 * @author zhaopengjun
 * @date 2019/5/17 16:22
 */
@Component
public class GyBalanceMQConfig {

    public static String CUSTOMER_TOPIC;
    public static String CUSTOMER_GROUPID;
    public static final String ACCESS_KEY = "LTAIkLoCSLqX7QFG";
    public static final String SECRET_KEY = "anr8xwxEFrN4Rq0Gjw5MXxELuDb12V";
    public static final String NAMESRV_ADDR = "http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80";

    //注入对应中心的topic 够样余额
    @Value("${RocketMQ_Key.GY.Topic}")
    private void setTOPIC(String Topic) {
        GyBalanceMQConfig.CUSTOMER_TOPIC = Topic;
    }

    @Value("${RocketMQ_Key.GY.GroupId}")
    private void setYsGroupId(String GroupId) {
        GyBalanceMQConfig.CUSTOMER_GROUPID = GroupId;
    }
    //够样余额冻结tag
    public static final String BALANCE_FREEZE = "BALANCEFREEZE";
    //够样余额解冻tag
    public static final String BALANCE_UNFREEZE = "BALANCEUNFREEZE";


    //手机号注册tag
    public static final String MOBILE_REGISTERED = "MOBILEREGISTERED";
    //微信注册tag
    public static final String WEICA_REGISTERED = "WEICAREGISTERED";
    //支付宝注册tag
    public static final String ALI_REGISTERED = "ALIREGISTERED";

    public static final String  TAG_ALL = "*";

}
